﻿namespace CIK.News.Web.Infrastructure.Security
{
    public class UserData
    {
        public UserData()
        {
        }

        public UserData(string userData)
        {
            var datas = userData.Split(';');

            if (datas.Length != 2) return;

            DisplayName = datas[0];
            Token = datas[1];
        }

        public string DisplayName { get; set; }

        public string Token { get; set; }

        public override string ToString()
        {
            return string.Format("{0};{1}", DisplayName, Token);
        }
    }
}